package cn.baiweigang.uu.db;

import cn.baiweigang.uu.model.DataMap;
import cn.baiweigang.uu.utils.DButil;

import java.util.List;

public class AccountInfoDb extends BaseDb {
    public static List<DataMap> queryAllAvailable() {
        String sql = "select * from account_info where status=1";
        return DButil.queryMultil(sql);
    }

    public static DataMap query(String accountName) {
        String sql = "select * from account_info where account_name='" + accountName + "'";
        return DButil.query(sql);
    }
}
